module.exports = (db) => {
    const { INTEGER, STRING, CHAR, BIGINT, BOOLEAN, TEXT } = require('sequelize').Sequelize
    const Article_content = db.define('article_content', {
        id: {
            type: INTEGER.UNSIGNED,
            primaryKey: true,
            allowNull: false,
            autoIncrement: true,
            unique: true,
            comment: '文章内容ID',
        },
        article_id: {
            type: INTEGER.UNSIGNED,
            allowNull: false,
            comment: '关联文章ID',
        },
        content: {
            type: TEXT('long'),
            allowNull: false,
            comment: '文章内容',
        },
    }, {
        timestamps: false,
    });
    return Article_content;
}